{include file="public/header" /}
<link rel="stylesheet" href="__ORG__/validform/css/validform.css">
<script type="text/javascript" src="__ORG__/validform/js/Validform_v5.3.2_min.js"></script>
<!--面包屑导航 开始-->
<div class="crumb_warp">
    <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
    <i class="fa fa-home"></i> <a href="{:url('admin/index/info')}">首页</a> &raquo; 修改密码
</div>
<!--面包屑导航 结束-->

<!--结果集标题与导航组件 开始-->
<div class="result_wrap">
    <div class="result_title">
        <h3>密码修改管理</h3>
        {if isset($error)}
            <div class="mark">
                <p>{$error}</p>
            </div>
        {/if}
    </div>
</div>
<!--结果集标题与导航组件 结束-->

<div class="result_wrap">
    <form action="" method="post" class="demoform">
        <table class="add_tab">
            <tbody>
            <tr>
                <th><i class="require">*</i>旧密码：</th>
                <td>
                    <input class="inputxt" type="password" size="30" placeholder="名称" name="old_password">
                    <span><i class="fa fa-exclamation-circle yellow"></i>(这里必须输入内容)</span>
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>新密码：</th>
                <td>
                    <input class="inputxt" type="password" size="30" placeholder="名称" name="password">
                    <span><i class="fa fa-exclamation-circle yellow"></i>(这里必须输入内容)</span>
                </td>
            </tr>
            <tr>
                <th><i class="require">*</i>确认密码：</th>
                <td>
                    <input class="inputxt" type="password" size="30" placeholder="名称" name="repassword">
                    <span><i class="fa fa-exclamation-circle yellow"></i>(这里必须输入内容)</span>
                </td>
            </tr>

            <tr>
                <th></th>
                <td>
                    <input type="submit" value="提交">
                    <input type="button" class="back" onclick="history.go(-1)" value="返回">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">
    //$(".demoform").Validform();

    var demo=$(".demoform").Validform({
        tiptype:3,
        label:".label",
        showAllError:true,
        datatype:{
            "zh1-6":/^[\u4E00-\u9FA5\uf900-\ufa2d]{1,6}$/
        },
        ajaxPost:false
    });

    //通过$.Tipmsg扩展默认提示信息;
    //$.Tipmsg.w["zh1-6"]="请输入1到6个中文字符！";
    demo.tipmsg.w["*5-30"]="密码请输入5到30个字符！";

    demo.addRule([{
            ele:".inputxt:eq(0)",
            datatype:"*5-30"
        },
        {
            ele:".inputxt:eq(1)",
            datatype:"*5-30"
        },
        {
            ele:".inputxt:eq(2)",
            datatype:"*5-30",
            recheck:"password"
        }]);

</script>
{include file="public/footer" /}